package app

import (
	cron2 "blog/app/cron"
	cronCore "blog/core/cron"
)

type cron struct {
	load cronCore.Load
}

var Cron = new(cron)

func (c *cron) Init() cronCore.Load {
	c.load = cronCore.Load{
		Fun: []cronCore.FuncInfo{
			{
				Action: cron2.PhotoOfTheDay, Set: []interface{}{
					cronCore.SetFuncInfoTime.SetSeconds("*/10"),
				},
			},
		},
	}

	return c.load
}
